﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="verify-v1" content="o55KxA5E38GJd8RysBJgUphs+pmzc/epBT+2aONirdo=" />
    <title>
        {% block title %}
        AIA Home Page
        {% endblock %}
    </title>
    <link rel="shortcut icon" href="/media/images/favicon.ico" />

    <!-- Blueprint Framework CSS -->
    <link rel="stylesheet" href="/media/stylesheets/blueprint/screen.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="/media/stylesheets/blueprint/print.css" type="text/css" media="print">
    <!--[if IE]><link rel="stylesheet" href="/media/stylesheets/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
    <!-- Import fancy-type plugin for the sample page. -->
    <link rel="stylesheet" href="/media/stylesheets/blueprint/plugins/fancy-type/screen.css" type="text/css" media="screen, projection">

    <link rel="stylesheet" href="/media/stylesheets/main.css" type="text/css" />
    <link rel="stylesheet" href="/media/stylesheets/menu.css" type="text/css" />

    <script src="/media/scripts/jquery-1.2.3.min.js" type="text/javascript"></script>
    <script src="/media/scripts/jquery.dimensions.pack.js" type="text/javascript"></script>
    <script src="/media/scripts/jquery.timers.js" type="text/javascript"></script>
    <script src="/media/scripts/jquery.jqURL.js" type="text/javascript"></script>

    {% block style %}
    <style type="text/css"></style>
    {% endblock %}

    {% block script %}
    <script type="text/javascript"></script>
    {% endblock %}

</head>

<body>
<div class="container">
    {% block headblock %}
    <h1>Artifical Intelligence Assistant (AIA)</h1>
    <h2 class="alt">AIA is an assistant that can do tasks like keeping accounts, arranging TODOs and so on intelligently.</h2>
    {% endblock %}
    
    <div class="span-15 prepend-1 colborder">
        {% block contents %}
        {% endblock %}
    </div>
    <div class="span-7 last">
        <div class="body">
            <h3>Functions</h3>
            <a href="/">Chat</a><br/>
            <a href="/accounting/">Accounting</a><br/>
            <!--
            <a href="/calendar/">Calendar</a><br/>
            
            <a href="/kb">Knowledge Base</a>
            -->
        </div>
        
        <div class="body">
            <h3>Profile</h3>
            {% block login %}
                <a href="">Login</a>
            {% endblock %}
            <br/>
            <a href="http://appengine.google.com/dashboard?app_id=aiassistant" target="blank">Admin</a>
        </div>
        
        {% block userdefinedblock %}
        {% endblock %}
        


        <!--
        <iframe src="http://www.google.com/talk/service/badge/Show?tk=z01q6amlq7dk8ajuoqpifcc3ff6jmlitbvels3oa3s03111pb1nd1vl4aro85gk5fhvc44htqnssif0a7n1eafcde9nqo28efpnpttrf8pkb7eaq30kjp4oqbre4c6ml0e2ncqn7pmoe1du8&amp;w=200&amp;h=60" frameborder="0" allowtransparency="true" width="200" height="60"></iframe>
        
        <object type="application/x-shockwave-flash" id="plugoo" data= "http://www.plugoo.com/plug.swf?go=COAGY5FY9Q64D1V" width="260" height="300"> <param name="movie" value= "http://www.plugoo.com/plug.swf?go=COAGY5FY9Q64D1V" /> <param name="allowScriptAccess" value="always" /> <param name="wmode" value="transparent" /> </object>
        -->
        <!--
        <object type="application/x-shockwave-flash" id="plugoo" data= "http://www.plugoo.com/plug.swf?go=AIZIGCK7MI0WZXO" width="260" height="300"> <param name="movie" value= "http://www.plugoo.com/plug.swf?go=AIZIGCK7MI0WZXO" /> <param name="allowScriptAccess" value="always" /> <param name="wmode" value="transparent" /> </object>
        -->
        <h5 class="alt" style="align:center">By ldmiao@gmail.com (Gtalk <span id="ownerstatus"></span>)</h5>
        
        <br/>
        <script type="text/javascript">
        function checkOwnerStatus(){
            $.post("/chat/botstatus/",
                //{url : "http://www.google.com/talk/service/badge/Show?tk=z01q6amlq9tj4m12hqf82nf1ibici0h61b7tqk5pi39ceob0qkc3qokkdtq0bsndc7utcsctnitidu77gd7lt880hmgit0l0jure5nojfq8occ7opskk7kbjqfoatfo7kvej9ntnc429jtorq3tcdscfr73f23qbfq6751fa8qkj5mqjtrhq4p8ch0bai8a6o1u8qskuipi5jl61qjju68aot53q0&amp;w=200&amp;h=60"}, 
                {url : "http://www.google.com/talk/service/badge/Show?tk=z01q6amlqq4frp2m8pg4oncftbrmpfl3255n78pb9li4ku0nun8u30k514pmlsi23dbbup7rar4nt8rhk3ag3vi1ofi2b4ud6hnn3a3g5uerf9d5iquf2hqotnjd62bjut8r95aigcst3d4g&amp;w=200&amp;h=60"}, 
                function(data){
                    //alert("Data Loaded: " + data);
                    if(data=="Available"){
                        $("#ownerstatus").css("color","green");
                    }else if(data=="Busy"){
                        $("#ownerstatus").css("color","red");
                    }else{
                        $("#ownerstatus").css("color","gray");
                    }
                    $("#ownerstatus").html(data);
                }
            );
            $("#ownerstatus").html("<img src='/media/images/ajax-loader1.gif' style='width:12px;height:12px' />");
        }
        checkOwnerStatus();
        
        $("#ownerstatus").everyTime('60s', 'checkOwnerStatus', checkOwnerStatus, 0, true);
        
        $("#ownerstatus").click(function(event){
            checkOwnerStatus();
        });
    
        </script>
    
    </div>
    
</div>

<script type="text/javascript" src="http://j.clickdensity.com/cr.js"></script>
<script type="text/javascript">
//<![CDATA[
  var clickdensity_siteID = 5360;
  var clickdensity_keyElement = 'kvalue';
//]]>
</script>

<script type="text/javascript" src="http://cetrk.com/pages/scripts/0008/4874.js"> </script>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4049556-2");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</body>
</html>
